package com.ucw.ucwclient.dal.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.ucw.ucwclient.dal.dataobject.Account;
import com.ucw.ucwclient.dal.search.NormalSearch;

@Repository
public interface AccountMapper {
	int deleteByPrimaryKey(Long id);

	int insert(Account record);

	int insertSelective(Account record);

	Account selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Account record);

	int updateByPrimaryKey(Account record);

	Account validAccount(Account ac);

	// 获取U学活动参与人
	List<Account> selectUSEnrollByPageSearch(@Param("search") NormalSearch search);

	// 查看某人的关注列表
	List<Account> selectOnesFollowsByPageSearch(@Param("search") NormalSearch search);

	List<Account> selectOnesFansByPageSearch(@Param("search") NormalSearch search);

	// U赛报名列表
	List<Account> selectACTEnrollByPageSearch(@Param("search") NormalSearch search);
}